Skip to content

fix: keep libwebrtc quiet by default and make logToDebug work again - #273

Merged
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:fix/logging-defaults-m152
Sep 7, 2026
Merged

fix: keep libwebrtc quiet by default and make logToDebug work again#273
devopvoid merged 1 commit into
devopvoid:mainfrom
SendableMetatype:fix/logging-defaults-m152

Conversation

@SendableMetatype

Copy link
Copy Markdown
Contributor

Since the m152 update, libwebrtc initializes its logging configuration on the first log line, with everything from INFO upwards written to stderr, and that configuration can be set only once. Its debug output no longer consults the severity set by LogMessage::LogToDebug, so Logging.logToDebug had no effect and every application got the full INFO log on stderr, on every platform, which is what #262 reports. The library now initializes the configuration when it is loaded, with the debug output disabled, which restores the previous behavior of staying silent unless asked. Logging.logToDebug registers a log sink that writes to the debugger output on Windows and to stderr elsewhere, where libwebrtc wrote before; a sink can be added and removed at any time, so the severity stays adjustable at runtime. The CI test logs show the effect directly: the INFO lines libwebrtc printed on every lane since m152 are gone.

Fixes #262

Since the m152 update, libwebrtc initializes its logging configuration
on the first log line, with everything from LS_INFO upwards written to
stderr, and that configuration can be set only once. Its debug output
no longer consults the severity set by LogMessage::LogToDebug, so
Logging.logToDebug had no effect and every application got the full
INFO log on stderr, on every platform.

The library now initializes the configuration when it is loaded, with
the debug output disabled, which restores the previous behavior of
staying silent unless asked. Logging.logToDebug registers a log sink
that writes to the debugger output on Windows and to stderr elsewhere,
which is where libwebrtc wrote before; a sink can be added and removed
at any time, so the severity remains adjustable at runtime.
@devopvoid
devopvoid merged commit bda6d36 into devopvoid:main Sep 7, 2026
11 checks passed
@SendableMetatype
SendableMetatype deleted the fix/logging-defaults-m152 branch September 7, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[0.16.0] Logging.logToDebug no longer works

2 participants